// 入口文件
//导入vue
import Vue from 'vue'
//导入App.vue
import app from './App.vue'

//按需导入Mint UI组件并注册
import { header,Swipe, SwipeItem,Button } from 'mint-ui'
Vue.component(header.name,header)
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);
import { Lazyload } from 'mint-ui'
Vue.use(Lazyload)

//导入vue-resource 并安装
import VueResource from 'vue-resource'
Vue.use(VueResource)
//设置基础路由开头
Vue.http.options.root = 'http://localhost:3001'
//设置全局 post 时候表达那数据格式组织形式
Vue.http.options.emulateJSON = true 


//导入MUI
import '../src/lib/mui/css/mui.min.css'
//mui扩展图标
import '../src/lib/mui/css/icons-extra.css'


//导入路由包文件
import VueRouter from 'vue-router'
//安装路由
Vue.use(VueRouter)
//导入路由模块
import router from './router.js'



var vm = new Vue({
    el:'#app',
    render:c => c(app),
    router
})